package com.itheima.manager;

import com.itheima.domain.OmsCompanyAddress;
import com.itheima.service.OmsCompanyAddressService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class OmsCompanyAddressManager {


    @DubboReference
    OmsCompanyAddressService omsCompanyAddressService;

    public List<OmsCompanyAddress> lists() {
        return omsCompanyAddressService.selectAll();
    }
}
